/*
包含应用中所有接口请求函数的模块
每个函数的返回值都是promise
*/
import { POST, GET } from './ajax'

//登录
export const relogin = (username, password) => POST('/login', { username, password })

//获取选手信息
export const getUser = () => GET('/getall_player')


//获取英雄信息
export const getHero = () => GET('/getall_hero')

//添加用户
// export const reAdduser =(user)=>ajax
// ('/user/add',user,'POST')
